package com.demo.security.model;

import cn.hutool.core.util.IdUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 验证JWT issuer 有效值
 *
 * @author molong
 * @since 2024/5/23
 */
public class JwtIssuerIdentify {

    private static final Logger LOGGER = LoggerFactory.getLogger(JwtIssuerIdentify.class);

    private static String sign;

    private JwtIssuerIdentify() {
        sign = IdUtil.simpleUUID();
        LOGGER.debug("jwt unique signature : {}", sign);
    }

    public static final JwtIssuerIdentify INSTANCE = new JwtIssuerIdentify();

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        JwtIssuerIdentify.sign = sign;
    }
}
